import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);
const routes = [
  //首页
  {
    path: "/yhj",
    name: "Main",
    component: () => import("../views/Main.vue"),
  },
  //页面0——直播
  {
    path: "/yhj/page0",
    name: "Page0",
    component: () => import("../views/Page0.vue"),
  },
  //页面1——樱园漫步
  {
    path: "/yhj/page1",
    name: "Page1",
    component: () => import("../views/Page1.vue"),
  },
  //页面2——樱书法
  {
    path: "/yhj/page2",
    name: "Page2",
    component: () => import("../views/Page2.vue"),
  },
  //页面3——樱绘画
  {
    path: "/yhj/page3",
    name: "Page3",
    component: () => import("../views/Page3.vue"),
  },
  //页面4——樱社团
  {
    path: "/yhj/page4",
    name: "Page4",
    component: () => import("../views/Page4.vue"),
  },
  //页面5——樱摄影
  {
    path: "/yhj/page5",
    name: "Page5",
    component: () => import("../views/Page5.vue"),
  },
  //页面6——樱诗词
  {
    path: "/yhj/page6",
    name: "Page6",
    component: () => import("../views/Page6.vue"),
  },
  //作品详细信息页面
  {
    path: "/yhj/details",
    name: "Details",
    component: () => import("../views/innerView.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  routes,
});

export default router;
